import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      // name: 'layout',
      component: (resolve) => require(['@/pages/layout/index.vue'], resolve),
      children: [{
        path: '/',
        name: 'index',
        component: (resolve) => require(['@/pages/index/index'], resolve)
      }]
    }
  ]
})
